<template>
  <div>
    <van-nav-bar
      title="我的课程"
      left-arrow
      @click-left="onClickLeft"
      @click-right="onClickRight"
    />
    <div class="aaa">
      <van-collapse v-model="activeNames">
        <van-collapse-item title="HTML" name="1">
          <van-cell style="padding: 0px" title="html" is-link to="html_course" />
          <van-cell style="padding: 0px" title="css" is-link to="css_course" />
          <van-cell style="padding: 0px" title="js" is-link to="js_course" />
          <van-cell style="padding: 0px" title="jquery" is-link to="jquery_course" />
        </van-collapse-item>
      </van-collapse>

      <van-collapse v-model="activeNames">
        <van-collapse-item title="框架" name="2">
          <van-cell style="padding: 0px" title="Vue" is-link to="index" />
          <van-cell style="padding: 0px" title="React" is-link to="index" />
        </van-collapse-item>
      </van-collapse>

      <van-collapse v-model="activeNames">
        <van-collapse-item title="组件" name="3">
          <van-cell style="padding: 0px" title="Vant 2" is-link to="index" />
          <van-cell style="padding: 0px" title="京东 UI" is-link to="index" />
          <van-cell style="padding: 0px" title="element" is-link to="index" />
        </van-collapse-item>
      </van-collapse>
    </div>
  </div>
</template>
<script>
import { Toast } from "vant";
export default {
  name: "course",
  data() {
    return {
      activeNames: [""],
    };
  },
  methods: {
    onClickLeft() {
      this.$router.go(-1);
    },
    onClickRight() {
      Toast("按钮");
    },
  },
};
</script>
<style scoped>
.aaa {
  width: 100%;
  height: 20px;
}
/deep/.van-icon{
  color: black;
}
</style>

